package com.transaction.service;

import javax.annotation.Resource;
import javax.jws.WebService;

import org.springframework.stereotype.Component;

@WebService(endpointInterface = "com.transaction.service.IProduct")
@Component("productService")
public class ProductImpl implements IProduct {

	@Resource
	private ProductDao productDao;
	
	public void setProductDao(ProductDao productDao) {
		this.productDao = productDao;
	}

	@Override
	public void build(String transactionId) {
		ProductDto productDto = new ProductDto();
		productDto.setName("product");
		productDao.add(productDto);
	}

}
